package com.serialcommunication.listener;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JFormattedTextField;
import javax.swing.JSlider;
import javax.swing.JTextField;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import org.apache.soap.encoding.Hex;

import com.serialcommunication.controller.Coordinator;
import com.serialcommunication.helper.ByteUtil;
import com.serialcommunication.interfaces.IBaseComponent;

public class MyChangeListener implements ChangeListener {
	
//	private JFormattedTextField valueDisplay;
//	private JSlider valueGenerator;
//	private int valueBytes;
//	private IComponent component;
	
//	public MySliderListener(IComponent comp) {
//		valueDisplay = pValueDisplay;
//		valueGenerator = pValueGenerator;
//		valueBytes = pValueBytes;
//		component = comp;
//	}

	
	@Override
	public void stateChanged(ChangeEvent e) {
		
//		int valueInt = component.getValue();
//		String valueHexString = Integer.toHexString(valueInt);
//		Hex valueHex = ByteUtil.generateHexForBytes(valueHexString, valueBytes);
//		component.setValue(pValue);
//		valueDisplay.setText(valueHex.toString());
	}
}
